import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    component: () => import("@/views/index.vue"),
    redirect: '/log',
    children: [
        {
          path: "/log",
          component: () => import("@/views/log/index")
        },
      {
        path: "/file",
        component: () => import("@/views/file/index")
      }
    ]
  },
  {
    path: '*',
    component: () => import("@/views/error/404")
  }
]

const router = new VueRouter({
  routes
})

export default router
